# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-cprint
_pkgname=cprint
pkgver=1.2.2
pkgrel=6
pkgdesc='Printing and debugging with color.'
arch=('any')
url='https://pypi.org/project/cprint/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('1c7a61fe5f5de415c602473d0528bebe5ece85f40272d68a387bf101a84078a269f4f9bd4f7d5fdf7bce24fb92c0a6315aa5a352f2221bebb6e5ffd5fd16f4aa')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

